import Vue from "vue";
import store from "../store";

Vue.directive("permission", {
  bind: function(el, { arg, value }) {
    if (!value && !store.state.permission[arg]) {
      el.style.display = "none";
    }
  }
});
